interface InterfaceIndex {
    // [index: number | string]: string 索引签名不能是联合类型

    [index: number]: string

    [key: string]: any
}

const names: InterfaceIndex = ['1', '2', '3', '4', '5']
const name1: string = names[0]
const forEachFun: any = names["forEach"]
console.log(name1, forEachFun)
